package com.xzw.test.sharding;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * https://blog.csdn.net/s1078229131/article/details/106785894
 */
@SpringBootApplication(scanBasePackages = "com.xzw.test.sharding")
//@EnableDisconf(scanPackages = "com.kltong.ma.agentpay")
//@EnableScheduling
//GoodsMapper 使用@Repository注解，必须要使用下面扫包模式
@MapperScan("com.xzw.test.sharding.dao")
public class Application extends SpringBootServletInitializer{

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(Application.class);
	}



	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
